{% extends "FOSUserBundle::layout.html.twig" %}
{% block head %}
{{parent()}}
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") == false %}
	<meta http-equiv="refresh" content="1; url={{path('cadss_test_homepage')}}" />
	<script type="text/javascript">
            window.location.href = "{{ path('fos_user_security_login') }}"
    </script>
{% endif %}
{% endblock head %}

{% block fos_user_content %}
	{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}	
		{% if message is defined %}
			<div class="toast">{{ message }}<img src="{{ asset('img/close.png') }}" witdh="16" height="16" onclick="this.parentNode.style.display='none'"/></div>
		{% endif %}
		{% include "CadssTestBundle:Default:files.html.twig" %}
    {% endif %}
{% endblock fos_user_content %}